home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Vk / VkPrefOption.z / VkPrefOption
Encoding:
Text File  |  1998-10-20  |  6.9 KB  |  199 lines

  1.  
  2.  
  3.  
  4. VVVVkkkkPPPPrrrreeeeffffOOOOppppttttiiiioooonnnn((((3333xxxx))))                                              VVVVkkkkPPPPrrrreeeeffffOOOOppppttttiiiioooonnnn((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      VkPrefOption - Option menu preference field
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      VkPrefItem : VkComponent : VkCallbackObject
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <Vk/VkPrefItem.h>
  16.  
  17. PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  18.    CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
  19.            VkPrefOption(const char* name, int numEntries);
  20.            virtual void ~VkPrefOption(void);
  21.  
  22.  
  23.    SSSSeeeettttttttiiiinnnngggg aaaannnndddd GGGGeeeettttttttiiiinnnngggg VVVVaaaalllluuuueeeessss
  24.            void setValue(int index);
  25.            int getValue(void);
  26.  
  27.  
  28.    AAAAcccccccceeeessssssss FFFFuuuunnnnccccttttiiiioooonnnnssss
  29.            int getSize(void);
  30.            void setSize(int numEntries);
  31.            void setLabel(int index,char* label);
  32.            char* getLabel(int index);
  33.            Widget getButton(int index);
  34.  
  35.  
  36. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  37.           VkPrefOption is an option menu preference object.  Option menus
  38.           consist of a collection of individual Motif buttons, and keep track
  39.           of the last button selected by the user.  See VkPrefItem for more
  40.           generic information about preference objects.
  41.  
  42.  
  43.  
  44. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  45.    VVVVkkkkPPPPrrrreeeeffffOOOOppppttttiiiioooonnnn(((())))
  46.            VkPrefOption(const char* name, int numEntries);
  47.            virtual void ~VkPrefOption(void);
  48.  
  49.  
  50.           Creates a Motif XmOptionMenu widget as its base, using the name
  51.           "optionMenu".  This name is hardcoded for the effective use of color
  52.           schemes.  A label widget is created using the name suffixed by
  53.           "Label".  The number of entries in the option menu is specified by
  54.           the second argument.  The individual buttons are created using the
  55.           name suffixed by "Button" suffixed by the zero-based button number.
  56.  
  57.    sssseeeettttVVVVaaaalllluuuueeee(((())))
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VVVVkkkkPPPPrrrreeeeffffOOOOppppttttiiiioooonnnn((((3333xxxx))))                                              VVVVkkkkPPPPrrrreeeeffffOOOOppppttttiiiioooonnnn((((3333xxxx))))
  71.  
  72.  
  73.  
  74.            void setValue(int index);
  75.  
  76.  
  77.           Changes the option object's current and real value.  The value is
  78.           the zero-based button index of the selected button.
  79.  
  80.    ggggeeeettttVVVVaaaalllluuuueeee(((())))
  81.            int getValue(void);
  82.  
  83.  
  84.           Copies the option object's current value to the real value, and
  85.           returns it.
  86.  
  87.    ggggeeeettttSSSSiiiizzzzeeee(((())))
  88.            int getSize(void);
  89.  
  90.  
  91.           Returns the current number of buttons in the option menu.
  92.  
  93.    sssseeeettttSSSSiiiizzzzeeee(((())))
  94.            void setSize(int numEntries);
  95.  
  96.  
  97.           Change the number of buttons in the option menu.
  98.  
  99.    sssseeeettttLLLLaaaabbbbeeeellll(((())))
  100.            void setLabel(int index, char* label);
  101.  
  102.  
  103.           Changes the label of a particular button in the option menu.  The
  104.           string will be looked up first as a resource and if that fails, used
  105.           verbatim.
  106.  
  107.    ggggeeeettttLLLLaaaabbbbeeeellll(((())))
  108.            char* getLabel(int index);
  109.  
  110.  
  111.           Retrieves the label of a particular button in the option menu.
  112.  
  113.    ggggeeeettttBBBBuuuuttttttttoooonnnn(((())))
  114.            Widget getButton(int index);
  115.  
  116.  
  117.           Returns the Motif XmPushButton widget associated with a particular
  118.           button in the option menu.
  119.  
  120. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  121.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkPPPPrrrreeeeffffIIIItttteeeemmmm
  122.           VkPrefItem(), ~VkPrefItem(), activate(), deleteChildren(),
  123.           labelHeight(), baseHeight(), setLabelHeight(), setBaseHeight(),
  124.           activateCallback(), installDestroyHandlers(), labelWidget(),
  125.           buildLabel(), getHeight(), setHeight(), _labelWidget, _baseName,
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. VVVVkkkkPPPPrrrreeeeffffOOOOppppttttiiiioooonnnn((((3333xxxx))))                                              VVVVkkkkPPPPrrrreeeeffffOOOOppppttttiiiioooonnnn((((3333xxxx))))
  137.  
  138.  
  139.  
  140.           _labelName, _activated, _homogeneous,
  141.  
  142.  
  143.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
  144.           installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
  145.           setDefaultResources(), getResources(), manage(), unmanage(),
  146.           baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
  147.  
  148.  
  149.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
  150.           callCallbacks(), addCallback(), removeCallback(),
  151.           removeAllCallbacks()
  152.  
  153.  
  154. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  155.      VkPrefItem, VkComponent
  156.      _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  157.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  158.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  159.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.